package com.itheima.test2;

public class Test {

    public static void main(String[] args) {
        //Outer.Inner inner = new Outer.Inner();
        //内部的成员也是静态
        System.out.println(Outer.Inner.num);
        Outer.Inner.sing();

        //只静态 类
        Outer.Inner inner = new Outer.Inner();
        System.out.println(inner.num);
        inner.sing();
    }

}


class Outer{


   static class Inner{
       static int num = 10;

        public static void sing() {
            System.out.println("只因你太美");

        }

    }
}